//客户端
var http = require("http");
var option = {  
    hostname : '127.0.0.1',   
    port : '8888',  
    path : '/',  
    method : 'get'  
}


http.request(option,function(res){
	console.log("成功访问  "+res.statusCode);  
}).end();